import Vue from 'vue'
import App from './App.vue'

/*引入router/idnex.js路由组件*/
import router from '@/router'

/* 引入ElementUI组件 */
import ElementUI from 'element-ui'

/* 引入element样式 */
import 'element-ui/lib/theme-chalk/index.css'

/* 样式 */
import '@/assets/css/style.css'
Vue.config.productionTip = false

Vue.use(ElementUI)


router.beforeEach((to, from, next) => {

 //  if (to.path == '/page1') {
 //    next()
 //  }else if(to.path == '/login'){
	// next()
 //  }else if(to.path == '/'){
	// next() 
 //  }else{
	// next({path: '/'})
 //  }
   next()

})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
